package org.tea.inventory.db.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

public class AlumniOrganizeCustom extends AlumniOrganize {

    private LocalDateTime createDate;

    private LocalDateTime authDate;

    private LocalDateTime modifyDate;

    private String userName;

    private String authUserName;

    private String url;

    private String organizeUserCount;

    private String priType;

    private String adminUserId;

    private String ownerUserName;

    private String bgAuthUserName;

    private Boolean isForbidden;

    private String userId;

    private String isNormal;

    // 格式化返回数据
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Override
    public LocalDateTime getCreateDate() {
        return createDate;
    }

    @Override
    public void setCreateDate(LocalDateTime createDate) {
        this.createDate = createDate;
    }

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Override
    public LocalDateTime getAuthDate() {
        return authDate;
    }

    @Override
    public void setAuthDate(LocalDateTime authDate) {
        this.authDate = authDate;
    }

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Override
    public LocalDateTime getModifyDate() {
        return modifyDate;
    }

    @Override
    public void setModifyDate(LocalDateTime modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAuthUserName() {
        return authUserName;
    }

    public void setAuthUserName(String authUserName) {
        this.authUserName = authUserName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getOrganizeUserCount() {
        return organizeUserCount;
    }

    public void setOrganizeUserCount(String organizeUserCount) {
        this.organizeUserCount = organizeUserCount;
    }

    public String getPriType() {
        return priType;
    }

    public void setPriType(String priType) {
        this.priType = priType;
    }

    public String getAdminUserId() {
        return adminUserId;
    }

    public void setAdminUserId(String adminUserId) {
        this.adminUserId = adminUserId;
    }

    public String getOwnerUserName() {
        return ownerUserName;
    }

    public void setOwnerUserName(String ownerUserName) {
        this.ownerUserName = ownerUserName;
    }

    public String getBgAuthUserName() {
        return bgAuthUserName;
    }

    public void setBgAuthUserName(String bgAuthUserName) {
        this.bgAuthUserName = bgAuthUserName;
    }

    public Boolean getForbidden() {
        return isForbidden;
    }

    public void setForbidden(Boolean forbidden) {
        isForbidden = forbidden;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getIsNormal() {
        return isNormal;
    }

    public void setIsNormal(String isNormal) {
        this.isNormal = isNormal;
    }


    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("AlumniOrganizeCustom{");
        sb.append("createDate=").append(createDate);
        sb.append(", authDate=").append(authDate);
        sb.append(", modifyDate=").append(modifyDate);
        sb.append(", userName='").append(userName).append('\'');
        sb.append(", authUserName='").append(authUserName).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
